home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 August: Tool Chest / Dev.CD Aug 98 TC.toast / Sample Code / Games / MoofWars / MoofWars Encoder 8⁄15⁄96 / •Headers / Color Search Procs.h next >
Encoding:
C/C++ Source or Header  |  1996-08-19  |  1.5 KB  |  48 lines  |  [TEXT/CWIE]

  1. /*************************************************************************************
  2. #
  3. #    Color Search Procs.h
  4. #    
  5. #    This file defines a number of commonly used color search procs.  For the encoder,
  6. #   we only use one of the procs, which returns white if the color of a pixel is within
  7. #   a certain delta of a key color, and returns black for all other cases.  We can use
  8. #   this to quickly create masks of an image.
  9. #   
  10. #
  11. #    Author: Timothy Carroll
  12. #    Apple Developer Technical Support
  13. #    timc@apple.com
  14. #
  15. #    Modification History: 
  16. #
  17. #    8/15/96        TMC     Initial Release
  18. #
  19. #    Copyright © 1996 Apple Computer, Inc., All Rights Reserved
  20. #
  21. #
  22. #    You may incorporate this sample code into your applications without
  23. #    restriction, though the sample code has been provided "AS IS" and the
  24. #    responsibility for its operation is 100% yours.  However, what you are
  25. #    not permitted to do is to redistribute the source as "DSC Sample Code"
  26. #    after having made changes. If you're going to re-distribute the source,
  27. #    we require that you make it clear in the source that the code was
  28. #    descended from Apple Sample Code, but that you've made changes.
  29. #
  30. *************************************************************************************/
  31.  
  32.  
  33. #ifndef _COLORSEARCHPROC_
  34. #define _COLORSEARCHPROC_
  35.  
  36. #pragma once
  37.  
  38. extern ColorSearchUPP MaskSearchProcUPP;
  39. extern ColorSearchUPP LightenSearchProcUPP;
  40. extern ColorSearchUPP DarkenSearchProcUPP;
  41.  
  42. extern RGBColor gMaskColor;
  43. extern SInt32    gSearchDelta;
  44.  
  45.  
  46. #endif // _COLORSEARCHPROC_
  47.  
  48.